import request from "@/utils/request.js";

// 轮播图
export function banners(data) {
  return request.get('banner?type=' + data.type);
}

// 推荐歌单
export function song_sheet(data) {
  return request.get('top/playlist?limit='+ data.limit +'&order=' + data.order);
}

// 歌单详情
export function song_sheet_detail(data) {
  return request.get('playlist/detail?id='+ data.id);
}

// 榜单
export function playList(data) {
  return request.get('playlist/detail?id=' + data.id);
}

// mv列表
export function video(data) {
  return request.get('mv/first?limit=' + data.limit);
}

// mv信息
export function videoDetail(data) {
  return request.get('mv/detail?mvid=' + data.mid);
}

// mv
export function playVideo(data) {
  return request.get('mv/url?id=' + data.mid);
}

// 搜索提示
export function suggest(data) {
  return request.get('search/suggest?keywords='+ data['keyword'] +'&type=mobile');
}

// 热搜
export function hot(data) {
  return request.get('search/hot/detail');
}

// 歌手信息
export function searchMultimatch(data) {
  return request.get('search/multimatch?keywords='+ data['keywords']);
}

// 综合搜索
export function mergeSearch(data) {
  return request.get('search?keywords='+data['keywords']+'&type=' + data['type']);
}

// 综合搜索
export function search(data) {
  return request.get('search?keywords='+data['keywords']+'&offset='+data['offset']+'&limit=15&type=' + data['type']);
}

// 评论
export function comment(data) {
  return request.get('comment/hot?type='+ data.type +'&id='+ data.id +'&limit=15');
}

// 歌手图片
export function artistDetail(data) {
  return request.get('artist/detail?id='+ data.id);
}

// 歌手介绍
export function artistDesc(data) {
  return request.get('artist/desc?id='+ data.id);
}

// 专辑
export function album(data) {
  return request.get('album?id='+ data.id);
}

// 歌曲url
export function songUrl(data) {
  return request.get('song/url?id='+ data.id);
}

// 歌词
export function songLyric(data) {
  return request.get('lyric?id='+ data.id);
}